package cn.exrick.xboot.base.service

import cn.exrick.xboot.base.entity.SecurityAdvisorJobTrainPart
import cn.exrick.xboot.base.vo.SecurityAdvisorJobTrainPartVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import com.baomidou.mybatisplus.extension.service.IService

/**
 * 安全顾问岗位培训分支接口
 * @author Fei
 */
interface ISecurityAdvisorJobTrainPartService : IService<SecurityAdvisorJobTrainPart?> {


    /**
     * 添加或者更新培训分支
     */
    fun createOrUpdateTrainPart(securityAdvisorJobTrainPart: SecurityAdvisorJobTrainPart) : Result<Any?>?

    /**
     * 移除培训分支
     */
    fun removeTrainPart(ids: Array<out String>) : Result<Any?>?

    /**
     * 获取分支详情
     */
    fun getTrainPartVo(id: String) : SecurityAdvisorJobTrainPartVo?

    /**
     * 获取分支详情
     */
    fun getTrainPartDetail(id: String?) : Result<SecurityAdvisorJobTrainPartVo?>?

    /**
     * 获取培训分支列表详情
     */
    fun getTrainPartList(pageVo: PageVo, jobTrainId: String) : Result<MutableMap<String, Any?>>?
}